/**
 * Copyright (C), 2019-2022, 宇信融汇
 * FileName: Main
 * Author:   666
 * Date:     2022/4/27 15:26
 * Description:
 * History:
 * <author>          <time>          <version>          <desc>
 * 666           修改时间           版本号              描述
 */
package com.strategy;

import java.util.Arrays;

/**
 * @Classname Main
 * @Description TODO
 * @Date 2022/4/27 15:26
 * @Created by 666
 */
public class Main {
    public static void main(String[] args) {
        Cat[] cs = {new Cat(3, 3), new Cat(6, 6), new Cat(5, 5), new Cat(1, 1)};
        Dog[] dog = {new Dog(3, 3), new Dog(6, 6), new Dog(5, 5), new Dog(1, 1)};
        Sorter<Dog> sorter = new Sorter();
        sorter.sort(dog, new DogWeigthComparator());
        System.out.println(Arrays.toString(dog));

        sorter.sort(dog, new DogWeigthComparator());
        System.out.println(Arrays.toString(dog));
    }
}
